package com.samp.tools.curator;

import com.samp.util.SampFileUtils;

/**
 * 利用curator上传和下载文件。
 */
public class UploadAndDown {

    public static void uploadFile(String zkpath, String localpath) throws Exception{
        byte[] data = SampFileUtils.getBytes(localpath);
        CuratorClientUtils.getClient().create().forPath("",data);
        CuratorClientUtils.closeClient();
    }

}
